/**
 * 
 */
package info.motteke.kurumi.swt;

import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.widgets.Shell;

final class TraySelectionListener extends SelectionAdapter {

    private final Shell parent;

    public TraySelectionListener(Shell parent) {
        this.parent = parent;
    }

    @Override
    public void widgetSelected(SelectionEvent e) {
        parent.setVisible(true);
        parent.setActive();
    }
}